package com.tunan.system.persistence.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import org.springframework.format.annotation.DateTimeFormat;

import com.tunan.utils.ExpandZtreeNode;


/**
 * 业务字典表Form类
 */
public class BscDicCodeType extends ExpandZtreeNode implements Serializable {
	
	private static final long serialVersionUID = 1L;

    //类型属性
    private String typeId;//主健

	@Size(max=50)
    private String typeCode;//类型编号

	@Size(max=100)
    private String typeName;//类型名称

	@Pattern(regexp="[0-1]")
    private String typeIsTree = "0";//是否为树结构。0表示列表结构，1表示树结构。

	@Pattern(regexp="[0-1]")
    private String typeIsActive = "1";//是否启用。0表示禁用，1表示启用。

	@Pattern(regexp="[0-1]")
    private String typeIsLock = "0";//是否锁定。0表示可删除，1表示不可删除。

    private String typeMemo;//备注说明
    
	private String typeCreater;//类型的创建者
	 @DateTimeFormat( pattern = "yyyy-MM-dd" )
    private Date   typeCreateTime; //类型的创建时间，精确到秒
    
    private String typeModifier;//类型的修改者
    
    private Date   typeModifyTime;//类型的修改时间，精确到秒

  
    //子项属性
    private List<BscDicCodeItem> children;
    
   
    
	public List<BscDicCodeItem> getChildren() {
		return children;
	}

	public void setChildren(List<BscDicCodeItem> children) {
		this.children = children;
	}
    
	public String getTypeId() {
		return typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}

	public String getTypeCode() {
		return typeCode;
	}

	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getTypeIsTree() {
		return typeIsTree;
	}

	public void setTypeIsTree(String typeIsTree) {
		this.typeIsTree = typeIsTree;
	}

	public String getTypeIsActive() {
		return typeIsActive;
	}

	public void setTypeIsActive(String typeIsActive) {
		this.typeIsActive = typeIsActive;
	}

	public String getTypeIsLock() {
		return typeIsLock;
	}

	public void setTypeIsLock(String typeIsLock) {
		this.typeIsLock = typeIsLock;
	}

	public String getTypeMemo() {
		return typeMemo;
	}

	public void setTypeMemo(String typeMemo) {
		this.typeMemo = typeMemo;
	}
	
    public String getTypeCreater() {
		return typeCreater;
	}

	public void setTypeCreater(String typeCreater) {
		this.typeCreater = typeCreater;
	}

	public Date getTypeCreateTime() {
		return typeCreateTime;
	}

	public void setTypeCreateTime(Date typeCreateTime) {
		this.typeCreateTime = typeCreateTime;
	}

	public String getTypeModifier() {
		return typeModifier;
	}

	public void setTypeModifier(String typeModifier) {
		this.typeModifier = typeModifier;
	}

	public Date getTypeModifyTime() {
		return typeModifyTime;
	}

	public void setTypeModifyTime(Date typeModifyTime) {
		this.typeModifyTime = typeModifyTime;
	}

    
}